package com.eian.boot.module.system.post.model.dto;

import com.eian.boot.common.core.model.core.BaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 用户岗位分配请求
 *
 * @author alex.meng
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(name = "用户岗位分配请求参数")
public class UserPostAssignRequest extends BaseDTO {

    @Schema(description = "用户ID")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "岗位ID列表")
    @NotNull(message = "岗位列表不能为空")
    private List<Long> postIds;
}

